import axios from 'axios'

// 获取邮箱验证码
export function sendAuthCode (email) {
    return axios.post(`user/authCode/${email}`)
}

// 注册
export function register (registerInfo) {
    return axios.post(`user/register`, registerInfo)
}

// 登录
export function login (loginInfo) {
    return axios.post(`user/login`, loginInfo)
}

// 重置密码
export function resetPassword (changePasswordInfo) {
    return axios.put(`user/reset`, changePasswordInfo)
}
